<div class="layui-inline">
<a href="?start_date={:date("Y-m-d",mktime(0, 0 , 0,date("m"),date("d"),date("Y")))}&end_date={:date("Y-m-d",mktime(23,59,59,date("m"),date("d"),date("Y")))}" class="layui-btn layui-btn-xs layui-btn-normal">今日</a>
<a href="?start_date={:date("Y-m-d",mktime(0, 0 , 0,date("m"),date("d")-1,date("Y")))}&end_date={:date("Y-m-d",mktime(23,59,59,date("m"),date("d")-1,date("Y")))}" class="layui-btn layui-btn-xs layui-btn-normal">昨日</a>
<a href="?start_date={:date("Y-m-d",mktime(0, 0 , 0,date("m"),date("d")-date("w")+1,date("Y")))}&end_date={:date("Y-m-d",mktime(23,59,59,date("m"),date("d")-date("w")+7,date("Y")))}" class="layui-btn layui-btn-xs layui-btn-normal">本周</a>
<a href="?start_date={:date("Y-m-d",mktime(0, 0 , 0,date("m"),date("d")-date("w")+1-7,date("Y")))}&end_date={:date("Y-m-d",mktime(23,59,59,date("m"),date("d")-date("w")+7-7,date("Y")))}" class="layui-btn layui-btn-xs layui-btn-normal">上周</a>
<a href="?start_date={:date("Y-m-d",mktime(0, 0 , 0,date("m"),1,date("Y")))}&end_date={:date("Y-m-d",mktime(23,59,59,date("m"),date("t"),date("Y")))}" class="layui-btn layui-btn-xs layui-btn-normal">本月</a>
<a href="?start_date={:date("Y-m-d",mktime(0, 0 , 0,date("m")-1,1,date("Y")))}&end_date={:date("Y-m-d",mktime(23,59,59,date("m") ,0,date("Y")))}" class="layui-btn layui-btn-xs layui-btn-normal">上月</a>
</div>
<div class="layui-inline">
  <label class="layui-form-label">日期选择</label>
  <div class="layui-input-inline"  style="width:80px;">
    <input type="text" name="start_date" id="start_date" value="{:input()['start_date']?:$start_date}" autocomplete="off" class="layui-input">
  </div>
</div>
<div class="layui-inline">
    <label class="layui-form-label" style="width:auto">-</label>
  <div class="layui-input-inline"  style="width:80px;">
      
    <input type="text" name="end_date" id="end_date" value="{:input()['end_date']?:$end_date}" autocomplete="off" class="layui-input">
  </div>
</div>